//
// Created by Administrator on 2025/4/12.
//

#ifndef STATEMACHINE_EVENT_H
#define STATEMACHINE_EVENT_H

//枚举事件类型,这里假设我有四个事件，前进，后退，左移，右移
//不同的朝向指令,向左转，向右转，向后转
enum EventType{
    None,
    Forward,
    Back,
    Left,
    Right,
    LeftTurn,
    RightTurn,
    BackTurn
};

//基本事件类
class Event{
public:
    //构造一个事件，事件类型默认为None
    Event(EventType t = EventType::None);
    virtual ~Event();
    //设置事件类型
    void setEventType(EventType t);
    //获取事件类型
    EventType getEventType() const;
private:
    EventType _type;
};


#endif //STATEMACHINE_EVENT_H
